﻿@inject IStringLocalizerAsync<EntityResourceTranslatation> Localizer
<div class="col" for="culture">
    @if (Resource.Id == null)
    {
        <CultureInfos @bind-Value="@Resource.CultureId" Entity="@_cultureInfo" EntityChanged="CultureSelected" />
    }
    else
    {
        <div class="col-form-label">
            @Resource.CultureId <em><small>@Localizer[_cultureInfo?.DisplayName ?? string.Empty]</small></em>
        </div>
    }        
</div>
<div class="col-lg-9 col-sm-12">
    @if (Resource.ResourceKind != Entity.EntityResourceKind.Description)
    {
        <AuthorizeText Placeholder="@Localizer["localized display name"]" @bind-Value="@Resource.Value" MaxLength="200" />
    }
    else
    {
        <AuthorizeTextArea Placeholder="@Localizer["localized description"]" @bind-Value="@Resource.Value" MaxLength="1000" />
    }
</div>
<div class="col-1">
    <button type="button" class="btn btn-primary btn-sm" @onclick="OnDeleteClick">
        <span class="oi oi-trash"></span><span class="visually-hidden">@Localizer["Delete"]</span>
    </button>
</div>
 